
<div class="col-md-9"  style="border: 1px solid #eee; min-height: 400px; background: #fff">
    <center><h4>DATA PENDUDUK </h4></center>
    <div class="row" style="padding: 20px;">
        <div class="col-md-12">
            <div class="form-group">
                <form action="<?php echo site_url() ?>/home/search_data" method="POST">
                    <label>Cari Berdasarkan NIK</label>
                    <input name="nik" type="input" value="" />
                    <input type="submit" value="Cari"/>
                </form>     
            </div>
        </div>
    </div>
    <?php foreach ($data_penduduk->result_array() as $row) { ?>

        <div class="row" style="padding: 20px;">
            <div class="col-md-6">
                <div class="form-group">
                    <label>NIK</label>
                    <p><?php echo $row["NIK"] ?></p>
                </div>
                <div class="form-group">
                    <label>NAMA</label>
                    <p><?php echo $row["NAMA_LGKP"] ?></p>
                </div>
                <div class="form-group">
                    <label>JENIS KELAMIN</label>
                    <p><?php echo $this->penduduk_model->get_jenis_kelamin($row["JENIS_KLMIN"]) ?></p>
                </div>
                <div class="form-group">
                    <label>AGAMA</label>
                    <p><?php echo $this->penduduk_model->get_agama($row["AGAMA"]) ?></p>
                </div>
                <div class="form-group">
                    <label>PEKERJAAN</label>
                    <p><?php echo $this->penduduk_model->get_jenis_pekerjaan($row["JENIS_PKRJN"]) ?></p>
                </div>
                <div class="form-group">
                    <label>PENDIDIKAN</label>
                    <p><?php echo $this->penduduk_model->get_pendidikan_akhir($row["PDDK_AKH"]) ?></p>
                </div>
                <div class="form-group">
                    <label>GOLONGAN DARAH</label>
                    <p><?php echo $this->penduduk_model->get_gol_darah($row["GOL_DRH"]) ?></p>
                </div>
                <div class="form-group">
                    <label>TEMPAT LAHIR</label>
                    <p><?php echo $row["TMPT_LHR"] ?></p>
                </div>
                <div class="form-group">
                    <label>TANGGAL LAHIR</label>
                    <p><?php echo $row["TGL_LHR"] ?></p>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label>STATUS KAWIN</label>
                    <p><?php echo $this->penduduk_model->get_status_kawin($row["STAT_KWN"]) ?></p>
                </div>
                <div class="form-group">
                    <label>NO AKTA KAWIN</label>
                    <p><?php echo $row["NO_AKTA_KWN"] ?></p>
                </div>
                <div class="form-group">
                    <label>TGL KAWIN</label>
                    <p><?php echo $row["TGL_KWN"] ?></p>
                </div>

                <div class="form-group">
                    <label>NIK IBU</label>
                    <p><?php echo $row["NIK_IBU"] ?></p>
                </div>
                <div class="form-group">
                    <label>NAMA IBU</label>
                    <p><?php echo $row["NAMA_LGKP_IBU"] ?></p>
                </div>
                <div class="form-group">
                    <label>NIK AYAH</label>
                    <p><?php echo $row["NIK_AYAH"] ?></p>
                </div>
                <div class="form-group">
                    <label>NAMA AYAH</label>
                    <p><?php echo $row["NAMA_LGKP_AYAH"] ?></p>
                </div>
                <div class="form-group">
                    <label>NO KK</label>
                    <p><?php echo $row["NO_KK"] ?></p>
                </div>
            </div>
        </div>
    <?php } ?>
</div>



</div>
</div> 
</section>

<style >
    .form-group{
        border-top:  1px solid #ddd;
        padding: 3px;
        margin: 5px;
        height: 60px;
        background: #eee;
    }

</style>